package tech.xs.service;

import java.util.Date;
import java.util.List;

import tech.xs.pojo.Employee;
import tech.xs.pojo.Leave;

public interface LeaveService {
	/**
	 * 	实现时间查询，分页
	 * @param start
	 * @param stop
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public List<Leave> list(Employee employee ,Date start,Date stop,Integer pageNo,Integer pageSize);
	/**
	 * 	总页数
	 * @param start
	 * @param stop
	 * @return
	 */
	public Integer count(Employee employee ,Date start,Date stop);
	 /**
     * 保存请假信息
     * @param leave
     */
    public void save(Leave leave);

    /**
     * 查看请假信息
     * @param leave
     * @return
     */
    public Leave getLeave(Leave leave);
    
    /**
     * 请假类型下拉框
     * @param leave
     * @return
     */
    public List<String> findLvType();
}
